package com.ys.erp.entity.data.bean;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author lwj
 * @date 2023/4/8
 */
    
@Data
@TableName(value = "t_right")
public class Right {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String rightType;

    /**
     * 权限关键key
     */
    @TableField(value = "right_key")
    private String rightKey;

    @TableField(value = "parent_id")
    private Long parentId;

    @TableField(value = "right_describe")
    private String rightDescribe;

    /**
     * 权限url
     */
    @TableField(value = "url")
    private String url;

    @TableField(value = "is_private_right")
    private Integer isPrivateRight;

    @TableField(value = "version")
    @Version
    private Integer version;

    @TableField(value = "create_time")
    private LocalDateTime createTime;

    @TableField(value = "update_time", update = "now()")
    private LocalDateTime updateTime;
}